(function () {
    let show = document.querySelector('li.show');
    let leave = document.querySelector('li.leave');
    const checkinbox = document.querySelector('.checkin-box');
    // 退出登录 
    let logout = document.querySelector('.logout');

    logout.addEventListener('click', function () {
        //清空token
        leave.style.display = 'inline-block';
        show.style.display = 'none';
        checkinbox.style.display = 'none';
        sessionStorage.clear();
    })

})();